<template>
  <div id="app">
    <img src="./assets/logo.png">
		<Hellow propD = 'ahshshashhshsh'/>
		<h1>{{setnum}}</h1>
  </div>
</template>

<script lang="ts">
	
	import Hellow from './components/HelloWorld.vue'
	import {Component, Prop, Vue,Watch} from 'vue-property-decorator'
  @Component({
  // 所有的组件选项都可以放在这里
  components: {
		Hellow
	}
})
	 
  export default class App extends Vue{
		a2:number=55;
		a3:string = 'kk';
	created(){
		interface A{
			name:string;
			sex:string;
		}
		let a:A = {
			name:'dd',
			sex:'ff'
		}
	  this.a2 = 5000
		console.log(this.a2)
	}
	get setnum(){
		return this.a2+1000
	}
	@Watch('number', { deep: true, immediate: true })
	numberWatch (newVal:string, oldVal:string) {
	   console.log(newVal)
	  }
	
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
